package com.wei.czz.common.vo.blog;

import com.wei.czz.common.constant.RedisConstant;
import com.wei.czz.common.vo.common.BaseVo;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2025-03-01 18:22:05
 * className: BlogManageFormVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class BlogManageFormVo extends BaseVo {

    /**
     * 用户主键
     */
    private Long userId;

    /**
     * 博客编号
     */
    private String code;

    /**
     * 博客-标签
     */
    private Integer label;

    /**
     * 博客-热门状态
     */
    private Integer hotStatus;

    /**
     * 博客-推荐状态
     */
    private Integer eliteStatus;

    /**
     * 获取Redis-String缓存键
     */
    public String getManageBlogListKey() {
        return RedisConstant.STRING + RedisConstant.MANAGE_BLOG_LIST + RedisConstant.SPLIT + userId + RedisConstant.SPLIT
                + code + RedisConstant.SPLIT + word + RedisConstant.SPLIT + label + RedisConstant.SPLIT + status
                + RedisConstant.SPLIT + hotStatus + RedisConstant.SPLIT + eliteStatus + RedisConstant.SPLIT + page
                + RedisConstant.SPLIT + limit + RedisConstant.SPLIT + field + RedisConstant.SPLIT + order;
    }

}
